home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / CUJ9209.ARJ / 1009022A < prev    next >
Text File  |  1992-07-08  |  334b  |  20 lines

  1. // LISTING 3
  2.  
  3. #ifndef EXCEPTION_H
  4. #define EXCEPTION_H
  5.  
  6. /*
  7.     stype() and type() are the same function, the difference is
  8.     that stype() can be called without an instance, like
  9.         Exception::stype();
  10. */
  11.  
  12. class Exception {
  13. public:
  14.     static stype {return 0;}
  15.     virtual type() {return 0;}
  16.     virtual size() {return sizeof(Exception);}
  17. };
  18.  
  19. #endif
  20.